﻿<UserControl x:Class="et_test.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="1024" d:DesignWidth="768">

    <Grid x:Name="LayoutRoot" >
        <Grid.RowDefinitions>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Background="#FF00335A">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" ></ColumnDefinition>
                <ColumnDefinition Width="*" ></ColumnDefinition>
                <ColumnDefinition Width="120"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0"  Text="试卷名称" TextWrapping="Wrap" Margin="10,2,5,0" FontSize="15" Foreground="White" FontWeight="Bold"></TextBlock>
            <TextBlock Grid.Row="0" Grid.Column="1" Name="testText"  Text="试卷名称" TextWrapping="Wrap" Margin="10,2,5,0" FontSize="15" Foreground="White" ></TextBlock>
            <StackPanel Grid.Row="0" Grid.Column="2" Orientation="Horizontal">
                <Image Source="/et_test;component/Images/clock.jpg"></Image>
                <TextBlock Name="timeText" Foreground="White" Text="NaN:NaN" FontSize="13" VerticalAlignment="Center"></TextBlock>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1">
            <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF056DA8" Offset="1" />
                    <GradientStop Color="#FF1B90C2" Offset="0.48100000619888306" />
                    <GradientStop Color="#FF2CA9D6" Offset="0" />
                </LinearGradientBrush>
            </Grid.Background>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" ></ColumnDefinition>
                <ColumnDefinition Width="*" ></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0"  Text="题      型" TextWrapping="Wrap" Margin="10,2,5,0" FontSize="15" Foreground="White" FontWeight="Bold"></TextBlock>
            <TextBlock Grid.Row="0" Grid.Column="1" Name="typeText"  Text="题型" TextWrapping="Wrap" Margin="10,2,5,0" FontSize="15" Foreground="White" ></TextBlock>
            
        </Grid>
     
        <Grid Grid.Row="2" Background="#FFD4D4D4">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" >
                <Button Width="80" Height="25" Content="前一试题" Name="pBtn" Margin="100,0,0,0"  FontSize="13" Background="White" Click="pBtn_Click" IsEnabled="False" />
                <Button Width="80" Height="25" Content="后一试题" Name="nBtn"  FontSize="13" Background="White" Click="nBtn_Click" IsEnabled="False" />
                <TextBlock Text="跳至第" Margin="15,7,5,0" FontSize="13"></TextBlock>
                <TextBox Height="25" Width="30" Name="pageText"></TextBox>
                <TextBlock Text="题" Margin="5,7,5,0" FontSize="13"></TextBlock>
                <Button Width="25" Height="25" Content="Go" Name="goBtn" Margin="0,0,0,0"  FontSize="13" Background="White" Click="goBtn_Click" />
            </StackPanel>

            <Button Content="提  交" Width="80" Height="25" Click="Button_Click" HorizontalAlignment="Right" FontSize="13" Background="White">

            </Button>
        </Grid>
        <Grid Grid.Row="3" Background="#FFEBEBEB" Name="first">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"></ColumnDefinition>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0"  Text="试 题" TextWrapping="Wrap" Margin="10,15,5,15" FontSize="15" Foreground="#FF868683" FontWeight="Bold"></TextBlock>
            <TextBlock Grid.Row="0" Grid.Column="1" Name="nameText" Text="" TextWrapping="Wrap" Margin="10,15,5,15" FontSize="15"></TextBlock>
            <StackPanel Grid.Row="1" Grid.Column="1">
                <StackPanel Name="checkSP" Margin="10,10,10,10" >
                </StackPanel>
                <Image Name="image" HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="None"></Image>
            </StackPanel>

        </Grid>
        <Grid Grid.Row="1" Grid.RowSpan="3"  Background="#FFEBEBEB" Name="last" Visibility="Collapsed">
            <Border HorizontalAlignment="Center" VerticalAlignment="Center" Height="180" Width="320" BorderThickness="1" BorderBrush="#FF414141">
                <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
                    <TextBlock Name="sText" Text="你的客观题考试成绩为：" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13"></TextBlock>
                    <StackPanel>
                        <Button Width="80" Height="25" Margin="0,10,0,0" x:Name="closeBtn" Content="关闭" Click="closeBtn_Click" Background="White" />
                        <Button Width="80" Height="25" Margin="0,10,0,0" x:Name="surveyBtn" Content="调查问卷" Background="White" Click="surveyBtn_Click" />
                    </StackPanel>
                    
                </StackPanel>
            </Border>
        </Grid>
    </Grid>
</UserControl>
